package com.romotc.qqrobot.webqq.bean;

import java.io.IOException;

import org.apache.commons.lang.StringUtils;
import org.codehaus.jackson.JsonParseException;
import org.codehaus.jackson.map.JsonMappingException;
import org.codehaus.jackson.map.ObjectMapper;

/**
 * Search_qq_by_uin2_ResponseBody 解析类
 * @author Administrator
		//{"retcode":0,"result":{"face":579,"birthday":{"month":2,"year":1985,"day":23},"occupation":"","phone":"","allow":1,"college":"","reg_time":0,"constel":0,"blood":0,"stat":20,"homepage":"","country":"中国","city":"","uiuin":"13361004869","personal":"","nick":"唐荣军","shengxiao":0,"email":"","token":"2515519f4a68195d0fee6e80644d3e13ed9e7640dbc110a8","province":"","account":2761004869,"gender":"male","tuin":2859600327,"mobile":"133********"}}
		//{"retcode":0,
				//"result":
					//{"face":579,
						//"birthday":
								//{"month":2,"year":1985,"day":23},
						//"occupation":"","phone":"","allow":1,"college":"",
						//"reg_time":0,"constel":0,"blood":0,"stat":20,"homepage":"",
                		//"country":"中国","city":"","uiuin":"13361004869","personal":"",
						//"nick":"唐荣军","shengxiao":0,"email":"",
		                //"token":"a1c9ae57022a1ae286db2eff0a8ae1b6d53b399bd122a671",
                		//"province":"","account":2761004869,"gender":"male","tuin":155913685,
		                //"mobile":"133********"
		            //}
		//}
 */
public class Search_qq_by_uin2_ResponseBody {

	private int retcode;
	private Search_qq_by_uin2_ResponseBody_Result result;
	static final ObjectMapper mapper = new ObjectMapper();
	
	public static Search_qq_by_uin2_ResponseBody parseFromJsonStr(String jsonStr) throws Exception {
		if(StringUtils.isBlank(jsonStr)) 
			return null;
		
		return mapper.readValue(jsonStr, Search_qq_by_uin2_ResponseBody.class);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}
	public int getRetcode() {
		return retcode;
	}
	public void setRetcode(int retcode) {
		this.retcode = retcode;
	}
	public Search_qq_by_uin2_ResponseBody_Result getResult() {
		return result;
	}
	public void setResult(Search_qq_by_uin2_ResponseBody_Result result) {
		this.result = result;
	}

}
